package cn.cloud9.designpattern.dp08flyweight.connection;

import java.sql.Connection;

/**
 * @projectName: Java
 * @author: 戴知舟
 * @date: 2022年05月24日 14:25
 * @version: 1.0
 */
public class Test {

    public static void main(String[] args) {
        ConnectionPool connectionPool = new ConnectionPool(10);

        Connection connection = connectionPool.getConnection();
        System.out.println(connection);
        connectionPool.release(connection);
    }
}
